package com.fa4j.system.app;

import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestParam;

import java.util.List;

@FeignClient(contextId = "sysAppClient", name = "fa4j-system", path = "system/app")
public interface AppClient {

    @GetMapping("/api/byRole")
    List<String> queryApisByRoleCode(
            @RequestParam("appType") String appType,
            @RequestParam("roleCode") String roleCode
    );

}
